#ifndef COM_H
#define COM_H


#include "QByteArray"
#include "QSerialPort"
#include <QObject>
#include "QTimer"
#include "QSettings"
#include "QTextCodec"
#include "fun.h"
#include "QTcpSocket"
#include <QUdpSocket>
#include "QTcpServer"
#include "QThread"

class com : public QThread
{
    Q_OBJECT
public:
    explicit com(test *da,QObject *parent = nullptr);
    void run();

    int run_timeadd=0;
signals:
    void send_run(QString);
    void send_temp(test_temp data);

private slots:   

    void run_time_out();
    void up_temp(test_temp data);


private:
    QTimer *run_time;   
    test *com_data;  
    int run_id=0;
};

#endif // COM_H
